package org.xnsg.app.core.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @author 赵攀
 *         业务层结果实例
 */
public class Result implements Serializable
{
    private Map<?, ?> result;

    public Result(Map<?, ?> result)
    {
        this.result = result;
    }

    public Map<?, ?> getResult()
    {
        return result;

    }

    public Result setResult(Map<?, ?> result)
    {
        this.result = result;

        return this;
    }


    public static void main(String[] arg)
    {
//        String jsonData = "{\"text_field\":\"aname\",\"data\":\"[{\\\"aname\\\":\\\"西庄村第四网格\\\",\\\"xid\\\":\\\"421224102214004\\\"}]\"}";
//        Map map=  JSON.parseObject(jsonData, Map.class);
//        // return result;
//        List<Map> list=JSON.parseArray((String)map.get("data"),Map.class);
        //System.out.println(list.get(0).get("aname"));
        //System.out.println();
        //      System.out.println(Integer.valueOf("2118615.0"));
/*
        new Thread(new Runnable()
        {
            @Override
            public void run()
            {
                for(int i=0;i<100;i++){
                    System.out.println(i);
                }
                for(int i=0;i<10;i++){
                    System.out.println("-----");
                }
            }
        }).start();

        for(int i=0;i<100;i++){
            System.out.println("+++++++++++++");
        }
        */
        String s = "2016-09-20 20:12:41.0";
        System.out.println(s.split("\\.")[0]);
        List l = new ArrayList();
        l.clear();
        System.out.println(l.get(0));
    }
}
